package com.grape.dp.observer.simple;


/**
 * 描述:UserObServer
 * @author: myx
 * @date: 2019/7/29 0029
 * Copyright © 2019-grape. All rights reserved.
 */
public class UserObServer implements ObServer {
    private String name;

    public UserObServer(String name) {
        this.name = name;
    }

    public void update(String message) {
        System.out.println(name + ",收到微信服务通知的消息:" + message);
    }
}
